﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyRead.aspx.cs" Inherits="Task.MyRead" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>待阅已阅</title>
    <link href="css/style.css" rel="stylesheet" rev="stylesheet" />
    <link href="css/global.css" rel="stylesheet" rev="stylesheet" />
    <link href="css/UI_Css/jquery-ui-1.8.17.custom.css" rel="stylesheet" rev="stylesheet" />
    <script type="text/javascript" src="script/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="script/jquery-ui-1.8.17.custom.min.js"></script>
    <script type="text/javascript" src="script/My97DatePicker_4.72/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        $(function () {
            setTab(<%=Index %>);
            $('#tabs').tabs({ selected:<%=Index %>,
                select: function (event, ui) {
                    setTab(ui.index);
                }
            });
        });
        function setTab(index) {
            $("#li" + index).addClass("currently");
            $("#li" + index).siblings().removeClass("currently");
        }

        function changeQuery() {
            $("#tbQuery").toggle();
        }
        function selectAll(ob)
        {
            if($(ob).attr("checked"))
            {
            $(":checkbox").attr("checked", $(ob).attr("checked"));
            }else
            {
            $(":checkbox").removeAttr("checked");
            }
        }
        function cancelOp()
        {
           var count= $("input[id$='ckFinGroup'][checked='checked']").length;
           //alert(count);
           if(count==0)
           {
           alert("没有选中项");
           return false;
           }else
           {
             if(confirm("确定要撤销当前的选中项"))
             {
                return true;
             }else
             {
                return false;
             }
           }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="right">
            <div class="place">
                <div class="placeleft">
                    <i></i>您当前的位置：<a href="">首页</a> >> <strong><b>待阅已阅</b></strong>
                </div>
                <a href="#" class="shuaxin">刷新</a>
            </div>
            <%--class="currently"  endDate.focus();--%>
        </div>
        <div class="listTable_1">
            <div class="tableTab" id="tabs">
                <div class="place">
                    <div class="placeleft">
                        <ul>
                            <li class="currently" id="li0"><a href="#MyRead">待阅任务(0)</a></li>
                            <li id="li1"><a href="#CompleteRead">已阅任务(0)</a></li>
                        </ul>
                    </div>
                    <span class="more" style="display: inline-block"><a href="#">更多>></a></span>
                </div>
                <div id="MyRead">
                    <table border="0" cellpadding="0" cellspacing="0" class="listTable1">
                        <tr>
                            <td>
                                流程标题
                            </td>
                            <td>
                                业务编号
                            </td>
                            <td>
                                发送人
                            </td>
                            <td>
                                到达时间
                            </td>
                            <td>
                                所属流程
                            </td>
                            <td rowspan="2">
                                <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="btnBg" OnClick="btnSearch_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="processName" id="processName" class="inputBorder" runat="server" />
                            </td>
                            <td>
                                <input type="text" name="bussinessID" id="bussinessID" class="inputBorder" runat="server" />
                            </td>
                            <td>
                                <input type="text" name="applicantUser" id="applicantUser" class="inputBorder" runat="server" />
                            </td>
                            <td>
                                <%--<input type="text" name="taskStartTime" id="taskStartTime" class="inputboder1 inputBg2" runat="server"  />--%><input
                                    id="startDate" class="Wdate inputboder1" type="text" onfocus="var endDate=$dp.$('endDate');WdatePicker({onpicked:function(){},maxDate:'#F{$dp.$D(\'endDate\')}'})"
                                    runat="server" />-<input id="endDate" class="Wdate" type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}'})"
                                        runat="server" />
                                <%--<input type="text" name="taskEndTime" id="taskEndTime" class="inputboder1 inputBg2" runat="server" />--%>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlProcessCatalog" runat="server" CssClass="inputboder1" Height="22px">
                                    <asp:ListItem Value="0">请选择...</asp:ListItem>
                                    <asp:ListItem Value="1">内部协办</asp:ListItem>
                                    <asp:ListItem Value="2">总公司发文</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <table border="0" cellpadding="0" cellspacing="0" class="listTable3">
                        <tr>
                            <th style="width: 3%">
                            </th>
                            <th style="width: 5%">
                                <input name="" type="checkbox" value="" />
                            </th>
                            <th style="width: 28%">
                                流程标题
                            </th>
                            <th style="width: 14%">
                                业务编号
                            </th>
                            <th style="width: 8%">
                                发送人
                            </th>
                            <th style="width: 15%">
                                到达时间
                            </th>
                            <th style="width: 10%">
                                所属流程
                            </th>
                        </tr>
                        <asp:Repeater ID="rpMyRead" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <img src="images/icon3.gif" />
                                    </td>
                                    <td>
                                        <input name="" type="checkbox" value="" />
                                    </td>
                                    <td>
                                        <%#Eval("PROCESSSUMMARY").ToString().Substring(0, Eval("PROCESSSUMMARY").ToString().IndexOf(';'))%>
                                    </td>
                                    <td>
                                        <%#Eval("PROCESSSUMMARY").ToString().Substring(Eval("PROCESSSUMMARY").ToString().IndexOf(';') + 1)%>
                                    </td>
                                    <td>
                                        <%#Eval("TASK_USER") %>
                                    </td>
                                    <td>
                                        <%#Eval("START_TIME") %>
                                    </td>
                                    <td>
                                        <%#Eval("PROCESS_NAME") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td colspan="7">
                                <webdiyer:AspNetPager ID="pagination" runat="server" Width="100%" meta:resourcekey="pagination"
                                    CssClass="aspNetPager" CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页"
                                    PrevPageText="上一页" FirstPageText="首页" LastPageText="末页" OnPageChanging="pagination_PageChanging"
                                    PageIndexBoxType="DropDownList" ShowCustomInfoSection="Left" NavigationToolTipTextFormatString='{0}'
                                    NumericButtonTextFormatString="{0}">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="CompleteRead">
                    <table border="0" cellpadding="0" cellspacing="0" class="listTable1">
                        <tr>
                            <th>
                                流程标题
                            </th>
                            <th>
                                业务编号
                            </th>
                            <th>
                                发送人
                            </th>
                            <th>
                                到达时间
                            </th>
                            <th>
                                所属流程
                            </th>
                            <td rowspan="2">
                                <asp:Button ID="btnSearchCom" runat="server" Text="查询" CssClass="btnBg" OnClick="btnSearchCom_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="processNameCom" id="processNameCom" class="inputBorder"
                                    runat="server" />
                            </td>
                            <td>
                                <input type="text" name="bussinessIDCom" id="bussinessIDCom" class="inputBorder"
                                    runat="server" />
                            </td>
                            <td>
                                <input type="text" name="applicantUserCom" id="applicantUserCom" class="inputBorder"
                                    runat="server" />
                            </td>
                            <td>
                                <%--<input type="text" name="taskStartTime" id="taskStartTime" class="inputboder1 inputBg2" runat="server"  />--%><input
                                    id="startDateCom" class="Wdate inputboder1" type="text" onfocus="var endDateCom=$dp.$('endDateCom');WdatePicker({onpicked:function(){},maxDate:'#F{$dp.$D(\'endDateCom\')}'})"
                                    runat="server" />-<input id="endDateCom" class="Wdate" type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'startDateCom\')}'})"
                                        runat="server" />
                                <%--<input type="text" name="taskEndTime" id="taskEndTime" class="inputboder1 inputBg2" runat="server" />--%>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlProcessNameFin" runat="server" CssClass="inputboder1" Height="22px">
                                    <asp:ListItem Value="0">请选择...</asp:ListItem>
                                    <asp:ListItem Value="1">内部协办</asp:ListItem>
                                    <asp:ListItem Value="2">总公司发文</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <table border="0" cellpadding="0" cellspacing="0" class="listTable3">
                        <tr>
                            <th style="width: 3%">
                            </th>
                            <th style="width: 5%">
                                <input name="" type="checkbox" value="" onclick="selectAll(this)" />
                            </th>
                            <th style="width: 28%">
                                流程标题
                            </th>
                            <th style="width: 14%">
                                业务编号
                            </th>
                            <th style="width: 8%">
                                发送人
                            </th>
                            <th style="width: 15%">
                                到达时间
                            </th>
                            <th style="width: 10%">
                                所属流程
                            </th>
                        </tr>
                        <asp:Repeater ID="rpCompleteRead" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <img src="images/icon3.gif" />
                                    </td>
                                    <td>
                                        <input name="CheckBoxGroup" type="checkbox" value='<%#Eval("INBOX_ID").ToString().Trim() %>'
                                            runat="server" id="ckFinGroup" />
                                    </td>
                                    <td>
                                        <%#Eval("PROCESSSUMMARY").ToString().Substring(0, Eval("PROCESSSUMMARY").ToString().IndexOf(';'))%>
                                    </td>
                                    <td>
                                        <%#Eval("PROCESSSUMMARY").ToString().Substring(Eval("PROCESSSUMMARY").ToString().IndexOf(';') + 1)%>
                                    </td>
                                    <td>
                                        <%#Eval("TASK_USER") %>
                                    </td>
                                    <td>
                                        <%#Eval("START_TIME") %>
                                    </td>
                                    <td>
                                        <%#Eval("PROCESS_NAME") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="btnCancel" runat="server" Text="撤销" class="btnBg" OnClick="btnCancel_Click"
                                    OnClientClick="return cancelOp()" />
                            </td>
                            <td colspan="5">
                                <webdiyer:AspNetPager ID="pagination2" runat="server" Width="100%" meta:resourcekey="pagination"
                                    CssClass="aspNetPager" CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页"
                                    PrevPageText="上一页" FirstPageText="首页" LastPageText="末页" OnPageChanging="pagination_PageChanging"
                                    PageIndexBoxType="DropDownList" ShowCustomInfoSection="Left" NavigationToolTipTextFormatString='{0}'
                                    NumericButtonTextFormatString="{0}">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
